package com.mr.model;

public class GoodsType extends BaseObject{
	private static final long serialVersionUID = 8062812816426519065L;
	private Long id;
	private String name;
	public GoodsType(){}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (!(o instanceof GoodsType))
			return false;

		final GoodsType temp = (GoodsType) o;

		return !(this.getId() != null ? !(this.getId().equals(temp.getId()))
				: (temp.getId() != null));

	}

	public int hashCode() {
		return (this.getId() != null ? this.getId().hashCode() : 0);
	}
}
